package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 接口校验对象 sys_requests_check
 * 
 * @author yql
 * @date 2023-09-19
 */
public class SysRequestsCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    @NotNull(message = "主键不能为空")
    @Range(min = 0,max = Integer.MAX_VALUE,message = "主键不符合规范")
    @ApiModelProperty(value = "主键",required = true)
    private Long id;

    /** 请求路径 */
    @Excel(name = "请求路径")
    @NotBlank(message = "请求路径不能为空")
    @Length(max = 255,message = "请求路径长度不能成功255")
    @ApiModelProperty(value = "请求路径",required = true)
    private String url;

    /** 请求方式 */
    @Excel(name = "请求方式")
    @NotBlank(message = "请求方式不能为空")
    @Length(max = 255,message = "请求方式长度不能成功255")
    @ApiModelProperty(value = "请求方式",required = true)
    private String method;

    /** 开关 open close */
    @Excel(name = "开关 open close")
    @NotBlank(message = "开关 open close不能为空")
    @Length(max = 255,message = "开关 open close长度不能成功255")
    @ApiModelProperty(value = "开关 open close",required = true)
    private String open;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setMethod(String method) 
    {
        this.method = method;
    }

    public String getMethod() 
    {
        return method;
    }
    public void setOpen(String open) 
    {
        this.open = open;
    }

    public String getOpen() 
    {
        return open;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("url", getUrl())
            .append("method", getMethod())
            .append("open", getOpen())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
